package com.xiaodu.acer;


import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Response;

/**
 * Created by ${wangshuyun} on 17/5/17.
 *
 */

public class HeaderInterceptor implements Interceptor {


    @Override
    public Response intercept(Chain chain) throws IOException {
        return chain.proceed(chain.request()
                .newBuilder()
                .addHeader("Content-type","application/json")
                .addHeader("token", "40272f15d4ea4186b24214a6b9707ce7")
                .build());
    }
}
